import { Controller, Get,UseGuards } from '@nestjs/common';
import { PanelService } from './panel.service';
import { AuthActionVerb, AuthPossession, AuthZGuard, UsePermissions } from 'nest-authz';
import { Public } from 'src/common/public.decorator';

@Controller('panel')
export class PanelController {
    constructor(private readonly panelService: PanelService) {}

    @Get("count")
  @Public()
  async userCount(): Promise<any> {
    return this.panelService.userCenter();
  }
}
